<?php
        $add_channel_menu = array();
        //如果为游客访问，不启用左侧菜单
        if(!empty($cfg_ml->M_ID))
        {
            $channelInfos = array();
            $dsql->Execute('addmod',"SELECT id,nid,typename,useraddcon,usermancon,issend,issystem,usertype,isshow FROM `#@__channeltype` ");	
            while($menurow = $dsql->GetArray('addmod'))
            {
                $channelInfos[$menurow['nid']] = $menurow;
                //禁用的模型
                if($menurow['isshow']==0)
                {
                    continue;
                }
                //其它情况
                if($menurow['issend']!=1 || $menurow['issystem']==1 
                || ( !preg_match("#".$cfg_ml->M_MbType."#", $menurow['usertype']) && trim($menurow['usertype'])!='' ) )
                {
                    continue;
                }
                $menurow['ddcon'] = empty($menurow['useraddcon']) ? 'archives_add.php' : $menurow['useraddcon'];
                $menurow['list'] = empty($menurow['usermancon']) ? 'content_list.php' : $menurow['usermancon'];
                $add_channel_menu[] = $menurow;
            }
            unset($menurow);
		?>

<div class="main_left">
<ul class="left_menu">
<li id="1"><a href="<?php echo $cfg_memberurl; ?>/" <?php echo ($menutype_son == 'index')? 'class="cur"' : 'class="m1"' ;?>><span <?php echo ($menutype_son == 'index')? 'class="icons icon_hyzy_h"' : 'class="icons icon_hyzy"' ;?>></span><span>会员主页</span></a></li>
<li id="2"><a href="buy.php" <?php echo ($menutype_son == 'buy')? 'class="cur"' : 'class="m2"' ;?>><span <?php echo ($menutype_son == 'buy')? 'class="icons icon_czxf_h"' : 'class="icons icon_czxf"' ;?>></span><span>充值消费</span></a></li>
<li id="3"><a href="mystow.php" <?php echo ($menutype_son == 'mystow')? 'class="cur"' : 'class="m3"' ;?>><span <?php echo ($menutype_son == 'mystow')? 'class="icons icon_wdsc_h"' : 'class="icons icon_wdsc"' ;?>></span><span>我的收藏</span></a></li>
<li id="4"><a href="soft_add.php?channelid=3" <?php echo ($menutype_son == 'soft_add')? 'class="cur"' : 'class="m4"' ;?>><span <?php echo ($menutype_son == 'soft_add')? 'class="icons icon_sczp_h"' : 'class="icons icon_sczp"' ;?>></span><span>发布作品</span></a></li>
<?php if($cfg_ml->M_Rank== 50){ ?>
<li id="5"><a href="content_list.php?channelid=3" <?php echo ($menutype_son == 'content_list')? 'class="cur"' : 'class="m5"' ;?>><span <?php echo ($menutype_son == 'content_list')? 'class="icons icon_glzp_h"' : 'class="icons icon_glzp"' ;?>></span><span>作品管理</span></a></li>
<li id="6"><a href="income.php" <?php echo ($menutype_son == 'in')? 'class="cur"' : 'class="m6"' ;?>><span <?php echo ($menutype_son == 'in')? 'class="icons icon_symx_h"' : 'class="icons icon_symx"' ;?>></span><span>收益明细</span></a></li>
<!--<li id="7"><a href="extract.php" <?php echo ($menutype_son == 'extract')? 'class="cur"' : 'class="m7"' ;?>><span <?php echo ($menutype_son == 'extract')? 'class="icons icon_sytx_h"' : 'class="icons icon_sytx"' ;?>></span><span>申请提现</span></a></li>-->
<?php } ?>
<li id="8"><a href="edit_fullinfo.php" <?php echo ($menutype_son == 'edit_fullinfo')? 'class="cur"' : 'class="m8"' ;?>><span <?php echo ($menutype_son == 'edit_fullinfo')? 'class="icons icon_zhsz_h"' : 'class="icons icon_zhsz"' ;?>></span><span>账户设置</span></a></li>
<li id="9"><a href="pm.php" <?php echo ($menutype_son == 'pm')? 'class="cur"' : 'class="m9"' ;?>><span <?php echo ($menutype_son == 'pm')? 'class="icons icon_znxx_h"' : 'class="icons icon_znxx"' ;?>></span><span>站内消息(<i><?php echo $mypms;?></i>)</span></a></li>
 <?php if($cfg_ml->isAdmin==1){ ?>
<li id="10"><a href="rzlist.php" <?php echo ($menutype_son == 'smlb')? 'class="cur"' : 'class="m10"' ;?>><span <?php echo ($menutype_son == 'smlb')? 'class="icons icon_rzlb_h"' : 'class="icons icon_rzlb"' ;?>></span><span>认证列表(<i><?php echo $mydsrz?></i>)</span></a></li>
 <?php } ?>

</ul>
</div>		
    <?php
    }
    ?>
    <!--左侧操作菜单项 -->
